<%@page import="model.ViewProduct"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ include file="MainBricks/includeStuff.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Atrium Home Page</title>
<link href="style/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
	<div id="wrapper">
		<%@ include file="MainBricks/header.jsp"%>
		<!-- end #header -->
		<%@ include file="MainBricks/topmenu.jsp"%>
		<!-- end #menu -->
		<div id="page">
			<div id="page-bgtop">
				<div id="page-bgbtm">
					<div id="content">
						<%@ include file="MainBricks/includeinContent.jsp"%>
						<center>
							<a href='cocktaillist.do?sort=name'>Sort by Name </a> &nbsp;&nbsp;|&nbsp;&nbsp; <a o href="cocktaillist.do?sort=price">Sort by Price</a>
						</center>
						<br>
						<table class="stocktable">
							<tr>
								<th>No.</th>
								<th>Product Name</th>
								<th>Value</th>
								<th>UM</th>
								<th>Price</th>
							</tr>
							<c:forEach items="${produse}" var="prod" varStatus="rowCounter">
								<tr>
									<td>${rowCounter.count}</td>
									<td><a href="product.do?m=view&id=${prod.productId}">${prod.productName}</a></td>
									<td>${prod.valoare}</td>
									<td>${prod.unitateMasura}</td>
									<td>${prod.pretIesire}</td>
								</tr>
							</c:forEach>
						</table>

					</div>
					<!-- end #content -->
					<%@ include file="MainBricks/leftmenu.jsp"%>
					<!-- end #sidebar -->
					<div style="clear: both;">&nbsp;</div>
				</div>
			</div>
		</div>
		<!-- end #page -->
	</div>
	<%@ include file="MainBricks/footer.jsp"%>
	<!-- end #footer -->
</body>
</html>